<template>
  <el-dialog title="修改" :visible.sync="dialogVisible" width="60%" class="popup" :before-close="handleClose">
    <el-descriptions title="基本信息">
      <el-descriptions-item label="资产编码">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="资产名称">
        <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
      </el-descriptions-item>
      <el-descriptions-item label="所属系统">
        <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
      </el-descriptions-item>
      <el-descriptions-item label="所属类别">
        <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
      </el-descriptions-item>
      <el-descriptions-item label="联系人">
        <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
      </el-descriptions-item>
      <el-descriptions-item label="联系电话">
        <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
      </el-descriptions-item>
      <el-descriptions-item label="资产位置">
        <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
      </el-descriptions-item>
      <el-descriptions-item label="资产用途">
        <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
      </el-descriptions-item>
      <el-descriptions-item label="点表地址">
        <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
      </el-descriptions-item>
    </el-descriptions>
    <br />
    <el-descriptions title="生命周期">
      <el-descriptions-item label="资产状态">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="采购日期">
        <el-date-picker size="mini" v-model="value1" type="date" placeholder="选择日期">
        </el-date-picker>
      </el-descriptions-item>
      <el-descriptions-item label="安装日期">
        <el-date-picker size="mini" v-model="value1" type="date" placeholder="选择日期">
        </el-date-picker>
      </el-descriptions-item>
      <el-descriptions-item label="启用日期">
        <el-date-picker size="mini" v-model="value1" type="date" placeholder="选择日期">
        </el-date-picker>
      </el-descriptions-item>
      <el-descriptions-item label="报废日期">
        <el-date-picker size="mini" v-model="value1" type="date" placeholder="选择日期">
        </el-date-picker>
      </el-descriptions-item>
    </el-descriptions>
    <br>
    <el-descriptions title="产品信息">
      <el-descriptions-item label="供应商">
        <el-select v-model="formInline.region" placeholder="请选择工单状态" size="mini">
          <el-option label="供应商编码" value="shanghai" />
          <el-option label="供应商名称" value="shanghai" />
        </el-select>
      </el-descriptions-item>
      <el-descriptions-item label="制造商">
        <el-select v-model="formInline.region" placeholder="请选择工单状态" size="mini">
          <el-option label="制造商编码" value="shanghai" />
          <el-option label="制造商名称" value="shanghai" />
        </el-select>
      </el-descriptions-item>
      <el-descriptions-item label="采购价格">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="保修截止日期">
        <el-date-picker size="mini" v-model="value1" type="date" placeholder="选择日期">
        </el-date-picker>
      </el-descriptions-item>
    </el-descriptions>
    <br>
    <el-descriptions title="成本信息">
      <el-descriptions-item label="更换成本">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="成本总计">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="预算">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="库存">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="年累计成本">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="库存">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
    </el-descriptions>
    <br>
    <el-descriptions title="其他信息">
      <el-descriptions-item label="使用情况描述">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="法定使用年限">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
      <el-descriptions-item label="IP地址">
        <el-input size="mini" placeholder="请输入内容" v-model="input2">
        </el-input>
      </el-descriptions-item>
    </el-descriptions>
    <span slot="footer" class="dialog-footer">
      <el-button size="small" @click="dialogVisible = false">取消</el-button>
      <el-button type="primary" size="small" @click="dialogVisible = false">确定</el-button>
    </span>
  </el-dialog>
</template>

<script>
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default {
  components: {
  },
  data () {
    return {
      dialogVisible: false,
      ruleForm: {
        pass: '',
        checkPass: '',
        age: ''
      },
      formInline: {
        user: '',
        region: '',
        deptId: []
      },
      value1: '',
      input2: '',
      value: null,
      // define options
      options: [{
        id: 'a',
        label: 'a',
        children: [{
          id: 'aa',
          label: 'aa',
        }, {
          id: 'ab',
          label: 'ab',
        }],
      }, {
        id: 'b',
        label: 'b',
      }, {
        id: 'c',
        label: 'c',
      }],
    }
  },
  computed: {
    rules () {
      return {
        pass: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
        ],
        checkPass: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
        ],
        age: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
        ]
      }
    }

  },
  methods: {
    toggleRece (flag) {
      this.dialogVisible = flag
    },
    handleClose (done) {
      this.$confirm('确认关闭？')
        .then(_ => {
          done()
        })
        .catch(_ => { })
    }
  }
};
</script>

<style lang="scss" scoped>
.el-descriptions {
  border-bottom: 1px solid #cdd0db;
}

.popup {
  ::v-deep .el-dialog {
    border-radius: 4px;
  }
  ::v-deep .el-dialog__header {
    border-bottom: 1px solid #cdd0db;
  }
  ::v-deep .el-dialog__body {
    padding: 30px;
  }
}
</style>

